package com.hj.utils;

public class Arrayutil {
	public static String[] removesame(String[]arry1,String[]arry2){
		String[] unique=new String[arry1.length];
		int i,m=0,k=0;
		if(arry1.length>0&&arry2.length>0){
			for(String a:arry1){
				for(i=0;i<arry2.length;i++){
					if(!(a.equals(arry2[i]))){			
						m++;
					}			
				}	
				if(m==arry2.length){
					unique[k]=a;
					k++;
				}
				m=0;
			}
		}
		return unique;		
	}
	public static void main(String[] args) {
		String[] a=null;
		String[] b={"1","2"};
		for(String c:Arrayutil.removesame(a,b)){
			System.out.println(c);
		}
		
	}
}
